# coding:UTF-8
import pymongo
from django.conf import settings

class DBConn:
    conn = None
    servers = settings.

    def connect(self):
        self.conn = pymongo.Connection(self.servers)

    def close(self):
        return self.conn.disconnect()

    def getConn(self):
        return self.conn